package com.freeunion.zhibo;

import android.app.Application;
import android.content.Context;

import com.freeunion.zhibo.presenters.InitBusinessHelper;
import com.freeunion.zhibo.utils.SxbLogImpl;

/**
 * Created by silas on 2016/12/22.
 */

public class ZhiboApplication extends Application {
    private static ZhiboApplication app;
    private static Context context;

    @Override
    public void onCreate() {
        super.onCreate();
        app = this;
        context = getApplicationContext();

        SxbLogImpl.init(getApplicationContext());

        //初始化APP
        InitBusinessHelper.initApp(context);

        //创建AVSDK 控制器类
    }

    public static Context getContext() {
        return context;
    }

    public static ZhiboApplication getInstance() {
        return app;
    }
}
